package com.shoulei.designpattern.mediatorPattern;

/**
 * @ClassName:MediatorPatternDemo
 * @Descrition:
 * @Author:shoulei
 * @Date:2019/4/14 21:39
 * @Verson:
 */
public class MediatorPatternDemo {
    public static void main(String[] args) {
        User robert = new User("robert");
        User john = new User("john");

        robert.sendMessage("hello john");
        john.sendMessage("hi rebort");
    }
}
